import { createApp } from "vue";
import { createPinia } from "pinia";
import "./app.scss";
import "uno.css";
import { IconFont } from "@nutui/icons-vue-taro";

const App = createApp({
  // 好像没能处理掉If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
  // compilerOptions: {
  //   isCustomElement(tag) {
  //     return ["navigator"].includes(tag);
  //   },
  // },
  onShow(options) {
    console.log("App onShow.");
  },
  // 入口组件不需要实现 render 方法，即使实现了也会被 taro 所覆盖
});

App.use(createPinia());
App.component("IconFont", IconFont);

export default App;
